package com.spartez.farhorizons.client.attic;

import java.util.Collection;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ListBox;
import com.spartez.farhorizons.client.FarHorizons;

public class PickSpeciesPanel extends HorizontalPanel {
	private final HTML galaxyLabel = new HTML();
	private final HTML speciesLabel = new HTML();
	private ListBox listBox;
	
	public PickSpeciesPanel() {
		add(galaxyLabel);
		add(speciesLabel);
//		
//		FarHorizons.greetingService.getVisibleSpecies(new AsyncCallback<Collection<SpeciesDescr>> () {
//
//			public void onFailure(Throwable caught) {
//				// TODO Auto-generated method stub
//				
//			}
//
//			public void onSuccess(Collection<SpeciesDescr> result) {
//				if (result.size() == 1) {
//					SpeciesDescr descr = result.iterator().next();
//					galaxyLabel.setHTML("Galaxy: " + descr.galaxyName);
//					speciesLabel.setHTML("Species: " + descr.name);
//				} else {
//					
//				}
//			}
//			
//		});
	}
	

}
